﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using System.Web.Ria.Services;
//using System.ServiceModel;

//namespace System.Web.Ria
//{
//    public class DomainServiceHostFactoryEx : DomainServiceHostFactory
//    {
//        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
//        {
//            return new DomainServiceHost(serviceType, FilterAddresses(baseAddresses));
//        }

//        private static Uri[] FilterAddresses(Uri[] baseAddresses)
//        {
//            return baseAddresses.GroupBy(uri => uri.Scheme).SelectMany(uri => uri).ToArray();
//        }

//    }
//}